#include "checkininfo.h"
#include<QDebug>

CheckinInfo::CheckinInfo()
{
    m_xid.clear();
    m_ScienceID.clear();
    m_teacherId.clear();
    m_classid.clear();
    m_RoomID.clear();
    m_checkintime.clear();
    m_xuehao.clear();
}

CheckinInfo::CheckinInfo(const QString &XID,const QString &ScienceID,
            const QString &teacherId,const QString &Classid,
            const QString &RoomID,const QString &CheckinTime,const QString &xuehao)
{
    m_xid = XID;
    m_ScienceID = ScienceID;
    m_teacherId =teacherId;
    m_classid =Classid;
    m_RoomID =RoomID;
    m_checkintime =CheckinTime;
    m_xuehao =xuehao;
}

CheckinInfo::~CheckinInfo()
{

}


void CheckinInfo::updateCheckinInfo(const CheckinInfo &info)
{
    m_xid = info.getXID();
    m_ScienceID = info.getScienceID();
    m_teacherId =info.getteacherId();
    m_classid =info.getclassid();
    m_RoomID =info.getRoomID();
    m_checkintime =info.getCheckinTime();
    m_xuehao =info.getxuehao();
}

void CheckinInfo::updateCheckinInfo(const QString &XID,const QString &ScienceID,
                       const QString &teacherId,const QString &Classid,
                       const QString &RoomID,const QString &CheckinTime,const QString &xuehao)
{
    m_xid = XID;
    m_ScienceID = ScienceID;
    m_teacherId =teacherId;
    m_classid =Classid;
    m_RoomID =RoomID;
    m_checkintime =CheckinTime;
    m_xuehao =xuehao;
    qDebug()<<"!!!!!!!!!!!!!!";
}

void CheckinInfo::display() const
{
    qDebug() << "--------------Disp CheckinInfo---------------";
    qDebug() << "m_xid: " << m_xid;
    qDebug() << "m_ScienceID: " << m_ScienceID;
    qDebug() << "m_teacherId: " << m_teacherId;
    qDebug() << "m_classid: " << m_classid;
    qDebug() << "m_RoomID : " << m_RoomID;
    qDebug() << "m_checkintime : " << m_checkintime;
    qDebug() << "m_xuehao : " << m_xuehao;
    qDebug() << "--------------CheckinInfo End----------------";
}

void CheckinInfo::setXID(const QString &xid)
{
     m_xid = xid;
}
const QString &CheckinInfo::getXID() const
{
   return m_xid;
}

void CheckinInfo::setScienceID(const QString &ScienceID)
{
    m_ScienceID = ScienceID;
}
const QString &CheckinInfo::getScienceID() const
{
      return m_ScienceID;
}

void CheckinInfo::setxuehao(const QString &xuehao)
{
    m_xuehao =xuehao;
}

const QString &CheckinInfo::getxuehao() const
{
     return m_xuehao;
}

void CheckinInfo::setteacherId(const QString &teacherId)
{
 m_teacherId =teacherId;
}
const QString &CheckinInfo::getteacherId() const
{
    return m_teacherId;
}

void CheckinInfo::setRoomID(const QString &RoomID)
{
      m_RoomID =RoomID;
}
const QString &CheckinInfo::getRoomID() const
{
    return m_RoomID;
}

void CheckinInfo::setclassid(const QString &classid)
{
    m_classid =classid;
}
const QString &CheckinInfo::getclassid() const
{
    return m_classid;
}

void CheckinInfo::setCheckinTime(const QString &CheckinTime)
{
    m_checkintime =CheckinTime;
}
const QString &CheckinInfo::getCheckinTime() const
{
    return m_checkintime;
}
